#include"SList.h"

int main()
{
	SListNode* plist = NULL; 
	SListPushFront(&plist,1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPrint(plist);
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);
	SListNode* p= SListFind(plist, 2);
	printf("%p\n", p);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListInsertAfter(p, 0);
	SListInsertAfter(p, 1);
	SListPrint(plist);
	SListEraseAfter(p);
	SListEraseAfter(p);
	SListPrint(plist);
	SListDestory(&plist);

	return 0;
}